<template>
	<view class="force_container">
		<view class="force_num">
			<!-- top -->
			<view class="force_num_top"></view>
			<!-- middle -->
			<view class="force_num_middle">
				<view class="title">原力</view>
				<view>{{yl_balan}}</view>
			</view>
			<!-- bottom -->
			<view class="force_num_bottom"></view>
		</view>
		<!-- 交易记录 -->
		<view class="force_trading">
			<trading-card v-for="item in tradingList" :item="item"></trading-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 原力值
				yl_balan:'',
				tradingList:[
					{
						tradingName:'火源兑换',
						data:'2022-3-1',
						num:'+1'
					},
					{
						tradingName:'火源兑换',
						data:'2022-3-1',
						num:'+1'
					}
				]
			}
		},
		onLoad: function(option) {
			this.yl_balan = option.yl_balance
		},
	}
</script>

<style lang="scss" scoped>
	.force_container {
		/* 确保没有高度的时候也会100% */
		min-height: 100vh;
		background-color: var(--echo-main-page-bg-color);

		.force_num {
			position: relative;

			&_top {

				height: 200rpx;
				background-color: $echo-main-color;

			}

			&_middle {
				position: absolute;
				box-shadow: 4px 4px 26px 6px rgba(0, 0, 0, 0.08);
				border-radius: 2rem;
				width: 70%;
				height: 140rpx;
				top: 50%;
				left: 50%;
				margin-top: -30rpx;
				margin-left: -35%;
				background-color: #fff;
				text-align: center;
				font-size: $echo-font-size-conent;
				color: #ccc;

				.title {
					font-size: $echo-font-size-title;
					color: #333;
					padding: 24rpx 0 10rpx;
				}
			}

			&_bottom {
				height: 100rpx;
				background: #fff;
			}

		}

		.force_trading {
			background-color: #fff;
			margin-top: 40rpx;
			padding: 0 40rpx;
			min-height: 100vh;
		}
	}
</style>
